<?php


namespace app\home\model;


class LeaveUserCancel extends Base
{
    public function getUserCancelData($leaveId,$userId)
    {
       return self::where('leave_id',$leaveId)
            ->where('userid',$userId)->where('status',1)
            ->where('end_time','gt',date("Y-m-d H:i:s"))
            ->value('id');
    }
}